@layout("/common/container.html", {"title" : "机构", "plugin": "jstree"}){
<div class="card">
    <#card:head title="机构" icon="la la-bars"/>
    <div class="card-body">
        <div class="row">
            <div class="col-lg-3 col-md-4 col-12 border-right">
                <form class="e-form e-padding-b-15">
                    <div class="input-group">
                        <input type="text" id="depart-type-title" class="form-control" placeholder="请输入关键字">
                        <div class="input-group-append">
                            <button id="search-depart-type-btn" class="btn btn-secondary" type="button">搜索</button>
                        </div>
                        <div class="input-group-append">
                            <#btn btnType="secondary" name="机构类型维护" icon="la la-bars"
                            click="EApp.openPage('类型维护', '${ctxPath}/auth/sys/depart/type/view')" permission="sys:depart:type:select"/>
                        </div>
                    </div>
                </form>

                <div id="depart-type-tree"></div>

                <div id="search-depart-type" class="e-hide">
                    <div class="tree"></div>
                    <button type="button" class="btn btn-metal btn-xs back-btn e-margin-t-5"><i
                            class="la la-undo"></i> 返回
                    </button>
                </div>
            </div>
            <div class="col-lg-9 col-md-8 col-12">
                <form class="e-form e-hide">
                    <div class="query-modular">
                        <div class="e-grid e-grid--ver e-grid--general">
                            <input type="hidden" name="typeCode" id="typeCode">
                            <div class="e-grid-item e-grid-item--fluid">
                                <div class="row">
                                    <div class="col-xl-4 col-lg-6 col-12">
                                        <#form:input id="name" name="机构名称"/>
                                    </div>
                                    <div class="col-xl-4 col-lg-6 col-12">
                                        <#form:input id="pName" name="上级名称"/>
                                    </div>
<!--                                    <div class="col-xl-4 col-lg-6 col-12">-->
<!--                                        <#form:input id="code" name="机构代码"/>-->
<!--                                    </div>-->
                                    <div class="col-xl-4 col-lg-6 col-12">
                                        <div class="form-group row">
                                            <label class="col-4 col-form-label">状态</label>
                                            <div class="col-8">
                                                <select class="form-control e-bootstrap-select select-picker"
                                                        id="status" name="status" data-dict-type="commonStatus"
                                                        onchange="ETool.selectData(this)">
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="e-grid-item query-btn-group">
                                <#btn:search />
                                <#btn:reset />
                            </div>
                        </div>
                    </div>
                    <div class="btn-row">
                        <#btn btnType="success" click="mDepartList.addDepart()" icon="la la-plus" name="新增" permission="sys:depart:save" />
                        <#btn:delete permission="sys:permissions:delete"/>
                        <#tableTool />
                    </div>
                    <div class="e-datatable" id="depart-list"></div>
                </form>
            </div>
        </div>
    </div>
</div>
<!--begin::页面脚本 -->
<#script src="static/modular/sys/depart/list.js" />
<!--end::页面脚本 -->
@}